Repository navigation
chore: prune stale pnpm exclusions automatically - #13130
Conversation
Remove the minimumReleaseAgeExclude entries now older than the 7-day gate, and the trustPolicyExclude entries the lockfile no longer resolves. Enable minimumReleaseAgeExcludePrune and trustPolicyExcludePrune so that pnpm install removes the entries the lockfile no longer resolves. Upgrade pnpm to 12.22.0: trustPolicyExcludePrune needs pnpm 12.4+. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
✅ [V2]
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
Size Change: 0 B Total Size: 12.1 MB ℹ️ View Unchanged
|
|
Size Change: 0 B Total Size: 12.1 MB ℹ️ View Unchanged
|
⚡️ Lighthouse report for the deploy preview of this PR
|
The setup install prunes the stale exclusions of pnpm-workspace.yaml, but then every pnpm command fails verifyDepsBeforeRun until the next install: install again before the autofix steps. Remove the @crowdin/* release-age exclusion, no longer needed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…cleanup-7339cf # Conflicts: # package.json # pnpm-lock.yaml
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Motivation
Stacked on #13136, which upgrades pnpm to 12.23.0:
trustPolicyExcludePruneneeds pnpm 12.4+.Our pnpm exclusion lists only grow: we add an entry to unblock a fresh release, and nobody removes it later.
This PR:
minimumReleaseAgeExcludeexact versions, now all older than the 7-day gate (the newest,serve-handler@6.1.8, was published on 2026-11-06).@crowdin/*release-age exclusion, no longer needed.trustPolicyExcludeentries that the lockfile no longer resolves:tinyexec@1.2.2andbrowserslist-load-config@1.0.2.minimumReleaseAgeExcludePruneandtrustPolicyExcludePrune:pnpm install(andadd/update/remove/dedupe) now removes the entries the lockfile no longer resolves.pnpm install --frozen-lockfilealready prunes them, but then every pnpm command failsverifyDepsBeforeRun(see below), so the workflow installs once more before the autofix steps.Pruning has limits:
minimumReleaseAge: we still have to remove these entries by hand.@rspack/*, and only removes package names (pnpm,typescript) once the package is gone from the lockfile.Reviewer notes:
pnpm <script>failsverifyDepsBeforeRun("The value of the minimumReleaseAgeExclude setting has changed"); runningpnpm installagain fixes it. This is a pnpm bug, still present in 12.23.0 and 12.24.0:verifyDepsBeforeRunfails after an install that prunesminimumReleaseAgeExclude/trustPolicyExcludeentries pnpm/pnpm#18498 On a PR with stale exclusions, the other CI workflows fail with this error, and the Lint workflow fails its immutable lockfile check, until Lint AutoFix pushes the pruned file.Test Plan
pnpm installpasses with the strict 7-day gate and no more exclusions for the removed versions.webpack@5.110.0andtinyexec@1.2.2) then runningpnpm installprunes them both.pnpm install --frozen-lockfile,pnpm dedupeandpnpm formatfail, and pass after the second install.pnpm dedupealso prunes.pnpm lintandzizmorpass.Test links
Deploy preview: https://deploy-preview-13130--docusaurus-2.netlify.app/
🤖 Generated with Claude Code
Summary by CodeRabbit